<%@ Page Language="C#" MasterPageFile="~/Masterpages/MasterPage.master" CodeFile="Login.aspx.cs" 
    Inherits="Login_aspx" Title="Login" meta:resourcekey="PageResource1" %>
<%@ Register src="Controls/AdvertismentsList.ascx" tagname="AdvertismentsList" tagprefix="uc1" %>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" Runat="server">
    
        <div class="section medium">
            
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText="Please, correct the following errors:" ValidationGroup="LoginGroup" CssClass="messageBox error" />
            

            <div class="messageBox">
                <asp:Panel ID="AccessNoticePanel" Runat="server" EnableViewState="False" Visible="False">
                    <asp:Literal ID="lblNotice" runat="server" Text="You have accessed a page or feature that requires login information." meta:resourcekey="lblNoticeResource1"></asp:Literal>                    
                    <br />
                </asp:Panel>
                <asp:Label ID="lblIntro" runat="server" Text="Use the form below to log in using your email address and password."></asp:Label>
                <asp:HyperLink ID="ProtectedPageRegisterLink" Runat="server" NavigateUrl="~/Register.aspx" meta:resourcekey="ProtectedPageRegisterLinkResource1" Text="Or click here to register"></asp:HyperLink>                
            </div>

                      


            <fieldset>
            <legend><asp:Literal ID="lblLoginTitle" runat="server" Text="Login" meta:resourcekey="lblLoginTitleResource1"></asp:Literal></legend>
                <ol>
                    <asp:Login ID="LoginConrol" Runat="server" TitleText="" OnLoginError="LoginError" meta:resourcekey="LoginConrolResource1">                        
                        <LayoutTemplate>
                            <li>
                                <asp:Label ID="lblUsername" runat="server" Text="Username <abbr title='required field'>*</abbr>" AssociatedControlID="Username"></asp:Label>
                                <asp:TextBox id="UserName" runat="server"></asp:TextBox>
                                <em><asp:requiredfieldvalidator id="UserNameRequired" runat="server" ControlToValidate="UserName" Text="Username is a required field" ErrorMessage="Username is a required field" ValidationGroup="LoginGroup" SetFocusOnError="true"></asp:requiredfieldvalidator></em>
                            </li>
                            <li>
                                <asp:Label ID="lblPassword" runat="server" Text="Password <abbr title='required field'>*</abbr>" AssociatedControlID="Password"></asp:Label>
                                <asp:TextBox id="Password" runat="server" textMode="Password"></asp:TextBox>
                                <em><asp:requiredfieldvalidator id="PasswordRequired" runat="server" ControlToValidate="Password" Text="Password is a required field" ErrorMessage="Password is a required field" ValidationGroup="LoginGroup" SetFocusOnError="true"></asp:requiredfieldvalidator></em>
                            </li>
                            <li>
                                <asp:Checkbox id="RememberMe" runat="server" Text="Remember my login"></asp:Checkbox>
                            </li>
                            <li class="buttonBar">
                                <asp:button id="Login" CommandName="Login" runat="server" Text="Login" ValidationGroup="LoginGroup"></asp:button>
                            </li>
                        </LayoutTemplate>                        
                    </asp:Login>
                    <li>
                        <asp:HyperLink ID="RegisterLink" Runat="server" NavigateUrl="~/Register.aspx" meta:resourcekey="RegisterLinkResource2" Text="Create an Account"></asp:HyperLink>
                    </li>
                    <li>
                        <asp:LinkButton ID="ForgotPasswordButton" Runat="server" PostBackUrl="~/ForgotPassword.aspx" meta:resourcekey="ForgotPasswordButtonResource1" Text="Forgot Password?" CausesValidation="false"></asp:LinkButton>
                    </li>                    
                </ol>
               </fieldset>         
            
            </div>
        
</asp:Content>


<asp:Content ID="Content1" ContentPlaceHolderID="RightContent" Runat="server">
    <div class="section small">
        
        <uc1:AdvertismentsList ID="AdvertismentsList1" runat="server" />
        
    </div>
</asp:Content>